import baseUrl from './base-url-config'

const { product } = baseUrl

export default {
  /**
   * 获取服务器端cookie
   */
  getServerCookie: {
    url: `${product}/fin-scrm-backlog-workbench/sqlOperate/all-cookies`,
    method: 'get',
    showError: false
  },
  /**
   * 验证用户是否有权限
   */
  verifyRule: {
    url: `${product}/fin-scrm-backlog-workbench/teleService/auth`,
    method: 'get',
    showError: false
  },
  /**
   * 获取短信验证码-返回成功-线下获取
   */
  getVerificationCode: {
    url: `${product}/fin-scrm-backlog-workbench/sqlOperate/verification`,
    method: 'post'
  },
  /**
   * 获取数据库列表
   */
  fetchDataBases: {
    url: `${product}/fin-scrm-backlog-workbench/sqlOperate/operateDatabase`,
    method: 'get'
  },
  /**
   * SQL执行确认
   */
  executeSql: {
    url: `${product}/fin-scrm-backlog-workbench/sqlOperate/execute`,
    method: 'post'
  },
  /**
   * 上传jar包
   */
  uploadJar: {
    url: `${product}/fin-scrm-backlog-workbench/jarOperate/upload`,
    method: 'post'
  },
  /**
   * 清理缓存
   */
  clearCache: {
    url: `${product}/fin-scrm-backlog-workbench/cache/:keys`,
    method: 'get'
  }
}